package com.wanke.dao;

import java.util.List;

import com.wanke.entity.Dormitory;
import com.wanke.entity.Student;
import com.wanke.entity.Teacher;

public interface DormitoryDao {

	void persist(Dormitory transientInstance);

	void attachDirty(Dormitory instance);

	void attachClean(Dormitory instance);

	void delete(Dormitory persistentInstance);

	Dormitory merge(Dormitory detachedInstance);

	Dormitory findById(int id);

	List findByExample(Dormitory instance);

	boolean addDormitory(Dormitory dormitory);

	boolean updateDormitory(Dormitory dormitory);
	
	List<Dormitory> findByZoom2AndCounselor(String zoom2,Teacher counselor);
}